package com.nuanshui.heatedloan.baseservice.dal.mapper;

import com.nuanshui.heatedloan.baseservice.model.ActionCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActionCountMapper {
  
	/**
	 * 加一
	 * @param bizId
	 * @param type
	 */
    void incrCount(@Param("bizId") String bizId, @Param("type") int type);
	/**
	 * 插入新的
	 * @param actionCount
	 */
    void  save(ActionCount actionCount);
	/**
	 * 减-
	 * @param bizId
	 * @param type
	 */
    void decrCount(@Param("bizId") String bizId, @Param("type") int type);
	
	Long getCount(@Param("bizId") String bizId, @Param("type") int type);
	
	void updateCount(@Param("count") Long count, @Param("bizId") String bizId, @Param("type") int type);
	
	Long findPostViewCountByPostIds(@Param("postIds") List<String> postIds);
	
}
